import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "awater-vue",
  description: "奥格智慧水务软件-vue自定义业务组件库",
  head: [
    ['link', { rel: 'icon', href: '/logo.png' }]
  ],
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    logo: '/logo.png',
    nav: [
      { text: '首页', link: '/' },
      { text: '组件', link: '/components/安装.html' }
    ],

    sidebar: {
      '/components/': [
        { text: '安装', link: '/components/安装' },
        { text: '快速上手', link: '/components/快速上手' },
        {
          text: '组件',
          items: [
            {
              text: 'AwFormRender',
              link: '/components/aw-form-render/',
              items: [
                { text: '介绍', link: '/components/aw-form-render/#介绍' },
                { text: '功能列表', link: '/components/aw-form-render/#功能列表' },
                { text: '应用场景', link: '/components/aw-form-render/#应用场景' },
                { text: '属性（Props）', link: '/components/aw-form-render/#属性-props' },
                { text: '交互事件', link: '/components/aw-form-render/#交互事件' },
                { text: 'API方法', link: '/components/aw-form-render/#api方法' },
                { text: '最小示例', link: '/components/aw-form-render/#最小示例' },
              ]
            },
            { text: 'AwFormDesigner', link: 'http://8.210.191.188:8080/awater-vue/' }
          ]
        }
      ],
    },

    socialLinks: [
      { icon: 'github', link: 'https://github.com/vuejs/vitepress' }
    ]
  }
})
